(function () {
    'use strict';

    var app = angular.module('HomeControllers', []);

    app.controller('HomeController', ['$scope', 'moduleService',
        function ($scope, moduleService) {
            $scope.openedModules = moduleService.openedModules;
            $scope.CloseModule = function ($index) {
                moduleService.closeModule($index);
            };
        }
    ]);
})();